﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditExchangeProduct.aspx.cs" Inherits="BaoJian.WebManager.Function.ExProduct.EditExchangeProduct" %>

<%@ Register TagPrefix="cc1" Namespace="CommonTools" Assembly="InputText" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 100px;
            height: 30px;
        }
        .style2
        {
            width: 400px;
            height: 120px;
        }
        .style3
        {
            width: 150px;
        }
    </style>
    <link href="../../../style/Style.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript" src="../../js/Calendar2.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div align="right">
        <asp:Button ID="Save" runat="server" OnClick="Save_Click" Text="保存" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Cancle" runat="server" Text="取消" OnClick="Cancle_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td class="style1">
                    序号(新建时不用填写）<font color="red">*</font>
                </td>
                <td>
                    <asp:TextBox ID="txtSID" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td colspan="2" rowspan="4" class="style2">
                    <asp:Image ID="Image1" runat="server" Width="120px" Height="120px" />
                </td>
            </tr>
            <tr>
                <td>
                    产品名称<font color="red">*</font>
                </td>
                <td>
                    <asp:DropDownList ID="drpPName" runat="server" Width="200px" DataTextField="Name"
                        DataValueField="PID" AutoPostBack="True" OnSelectedIndexChanged="drpPName_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    产品分类<font color="red">*</font>
                </td>
                <td>
                    <asp:DropDownList ID="catalog" runat="server" Width="200px" DataTextField="Name"
                        DataValueField="CatalogID">
                         <%--  用小写的unqiueidentifier--%>
                        <asp:ListItem Value="f0112f7c-ddd5-4056-91c5-38b63ef0ea52">增强免疫力</asp:ListItem>
                        <asp:ListItem Value="31fedeae-05c1-43ff-bb6f-7e1859ee04a5">辅助降脂</asp:ListItem>
                        <asp:ListItem Value="5b58a522-9d88-4944-9dfc-1f6bff256274">辅助降血压</asp:ListItem>
                        <asp:ListItem Value="4df043b5-c97d-42eb-a8a9-e8952494926d">辅助降糖</asp:ListItem>
                        <asp:ListItem Value="368d1dab-daeb-403c-bf70-fd41600a4540">辅助改善记忆力</asp:ListItem>
                        <asp:ListItem Value="7103c884-5fb6-4eea-8557-1851e5c170ab">缓解视疲劳</asp:ListItem>
                        <asp:ListItem Value="588c7672-9062-4e1b-8f04-52e86716a003">改善睡眠</asp:ListItem>
                        <asp:ListItem Value="67fecea7-32d0-4698-b159-8516bc6f4db5">缓解体力疲劳</asp:ListItem>  
                        <asp:ListItem Value="d571b1cf-0808-4ea0-adbf-a6423744435e">增加骨密度</asp:ListItem>
                        <asp:ListItem Value="fc4a548b-5c66-408b-9b40-89af40497bd9">祛黄褐斑</asp:ListItem>                                
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    注册时间<font color="red">*</font>
                </td>
                <td>
                    <input onselectstart="return false;" style="width: 200px" onkeypress="return false"
                        id="txtRegTime" onfocus="setday(this)" readonly type="text" name="txtRegTime"
                        runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    最后期限<font color="red">*</font>
                </td>
                <td>
                    <input onselectstart="return false;" style="width: 200px" onkeypress="return false"
                        id="txtDeadline" onfocus="setday(this)" readonly type="text" name="txtDeadline"
                        runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    交换单价(元)<font color="red">*</font>
                </td>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
                    交换数量<font color="red">*</font>
                </td>
                <td>
                    <asp:TextBox ID="txtTotalNum" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    生产日期<font color="red">*</font>
                </td>
                <td>
                    <input onselectstart="return false;" style="width: 200px" onkeypress="return false"
                        id="txtProduceDate" onfocus="setday(this)" readonly type="text" name="txtProduceDate"
                        runat="server" />
                </td>
                <td>
                    过期日期<font color="red">*</font>
                </td>
                <td>
                    <input onselectstart="return false;" style="width: 200px" onkeypress="return false"
                        id="txtExpireDate" onfocus="setday(this)" readonly type="text" name="txtExpireDate"
                        runat="server" />
                </td>
            </tr>
            <tr>
                <td valign="top">
                    互换原因
                </td>
                <td colspan="3" style="height: 200px" valign="top">
                    <asp:TextBox ID="txtExReason" Height="60px" TextMode="MultiLine" runat="server" Width="530px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
